package com.fulihui.usercore.dal.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fulihui.usercore.dal.dataobj.MerchantDO;

/**
 *
 * Created by Willard.Hu on 2016/5/17.
 */
public interface MerchantMapper {

    void insert(MerchantDO merchantDO);

    boolean update(MerchantDO merchantDO);

    MerchantDO queryByPK(@Param("mid") String mid);

    List<MerchantDO> query(MerchantDO params);

    List<MerchantDO> queryPage(@Param("start") int start, @Param("rows") int rows,
                               @Param("params") MerchantDO params);

    int totalCount(@Param("params") MerchantDO params);
}
